<?php

namespace app\model\user;

use hunma\basic\BaseModel;

class UserDynamicsModel extends BaseModel
{
    protected $table = 'user_dynamics';

    // 时间戳字段
    public $timestamps = false;
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    const DELETED_AT = 'delete_time';

    // 软删除
    protected $dates = ['delete_time'];

    // 可填充字段
    protected $fillable = [
        'account', 'password', 'character'
    ];

    // 隐藏字段
    protected $hidden = [
        'password'
    ];
}
